package factoryMethodPattern.Pen;



/**
 * @program: course
 * @author: lsn
 * @create: 2024-03-24 20:45
 * @description: 蓝色笔芯的具体实现
 */
public class BluePenCore extends PenCore{

    public BluePenCore() {
        super("蓝色");
    }

    @Override
    public void writeWord(String s) {
        System.out.println("用[" + color + "笔芯]写出{"+color+"}的字: " + s);
    }
}

